cmake_minimum_required(VERSION 3.0)

project(flv_protocol)

add_definitions(-Wall -Wshadow -std=c++17)
include_directories(./../)
include_directories(./../../string_util/)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include_directories(./../)
include_directories(./../../)

set(test_flv_protocol_parser_src_list ./test_flv_protocol_parser.cpp
    ./../flv_message.cpp
    ./../flv_parser.cpp
    ./../../string_util/string_util.cpp
        ./../../file_module/file_operate.cpp
        ./../../file_module/file_handle.cpp
        ./../../file_module/file_description.cpp
        ./../../write_read_module/buffer.cpp
    ./../../amf_module/amf.cpp
    ./../../amf_module/byte_process.cpp)

add_executable(TEST_FLV_PROTOCOL_PARSER ${test_flv_protocol_parser_src_list})

set(libs gtest)

target_link_libraries(TEST_FLV_PROTOCOL_PARSER ${libs} gtest_main)